#57737 closed defect (bug) (invalid)
Start composing post with same title as existing post, click Preview, post_title is set to point to existing post
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Awaiting Review | Priority: | normal |
| Severity: | normal | Version: | 6.1.1 |
| Component: | Posts, Post Types | Keywords: | has-test-info |
| Focuses: | Cc: |
Description
- Start composing a new post.
- Set the title of the post to be the same as the title of another recently published post.
- Click Preview and then Preview in new tab.
- Go look at the post_title column for the post in the wp_posts table in the database, and observe that it's pointing at the existing post whose title you used, not the new post.
If you then publish the post, its link on your home page will be to the old post, not the new one.
Change History (6)
This ticket was mentioned in Slack in #core-test by ironprogrammer. View the logs.
3 years ago
#3
@
3 years ago
- Keywords has-testing-info needs-testing added
Hi, @jikamens, and thank you for the report!
During test triage today, this wasn't reproducible on trunk. If it can be confirmed reproducible on 6.1.1, then there may have been a change that fixed it more recently. The updated keywords should draw some attention for someone to help repro.
#5
follow-up:
↓ 6
@
8 days ago
- Keywords needs-testing removed
- Resolution set to invalid
- Status changed from new to closed
Reproduction Report
Description
This report validates whether the issue can be reproduced.
Environment
- WordPress: 7.0-alpha-61499
- PHP: 8.3.30
- Server: PHP.wasm
- Database: WP_SQLite_Driver (Server: 8.0.38 / Client: 3.51.0)
- Browser: Chrome 144.0.0.0
- OS: Linux
- Theme: Twenty Twenty-Five 1.4
- MU Plugins: None activated
- Plugins:
- Test Reports 1.2.1
Actual Results
- ❌ Error condition doesn't occur (not reproducible).
- The new post links to the correct post and not the one created before.
Additional Notes
- Posts mainly use the
post_nameorpost_idto create links for posts, depending on how your permalink structure is set up. - Thus, two posts can't share the same link even if they have the same
post_title. post_titlecolumn contains the Post Title only and no links at all.
Supplemental Artifacts
ScreenCast:
https://files.catbox.moe/0g0teu.webm
#6
in reply to:
↑ 5
@
7 days ago
Replying to r1k0:
Reproduction Report
Description
This report validates whether the issue can be reproduced.
Environment
- WordPress: 7.0-alpha-61499
- PHP: 8.3.30
- Server: PHP.wasm
- Database: WP_SQLite_Driver (Server: 8.0.38 / Client: 3.51.0)
- Browser: Chrome 144.0.0.0
- OS: Linux
- Theme: Twenty Twenty-Five 1.4
- MU Plugins: None activated
- Plugins:
- Test Reports 1.2.1
Actual Results
- ❌ Error condition doesn't occur (not reproducible).
- The new post links to the correct post and not the one created before.
Additional Notes
- Posts mainly use the
post_nameorpost_idto create links for posts, depending on how your permalink structure is set up.- Thus, two posts can't share the same link even if they have the same
post_title.post_titlecolumn contains the Post Title only and no links at all.Supplemental Artifacts
I checked your screencast as you mentioned above. First it bit confusing but after watching 2 to 3 times. It has been resolved.
Hmm, I actually think the bug here is that there shouldn't be a link in the post_title field at all? I think it incorrectly inserts a link into the post_title field if you preview before a draft is saved?